package main

import (
	_ "git.tmuyu.com.cn/beego/routers"
	"git.tmuyu.com.cn/beego/service"
	"git.tmuyu.com.cn/beego/util"
	"github.com/astaxie/beego"
	"log"
	"os"
)

func main() {
	mysql := util.GetMysqlInstance().InitMysqlPool()

	if !mysql {
		log.Println("init database pool failure...")
		os.Exit(1)
	}
	go func() {
		service.ShopTimeTask()
	}()
	beego.Run()
}
